//管理员的请求封装
import request from "@/utils/http.ts"


//1.查询管理员个人信息
export const queryAdminPersonalAPI = (adminId: any) => {
    return request({
        url: 'admin/queryAdminPersonal',
        method: 'post',
        params: {
            adminId: adminId,
        }
    })
}

//2.更新管理员个人信息
export const updateAdminPersonalAPI = (data: any) => {
    return request({
        url: 'admin/updateAdminPersonal',
        method: 'post',
        data: {
            adminId: data.adminId,
            adminUsername: data.adminUsername,
            adminPhone: data.adminPhone,
            userAvatarUrl: data.userAvatarUrl,//头像
        }
    })
}

//3.查询出管理员-首页数据总汇
export const queryAdminHomeDataAPI = () => {
    return request({
        url: 'admin/queryAdminData',
        method: 'post',
        params: {
        }
    })
}

//4.查询出管理员-首页企业行业情况
export const queryAdminHomeIndustryAPI = () => {
    return request({
        url: 'admin/queryAdminEmployerData',
        method: 'post',
        params: {
        }
    })
}

//5.查询出管理员-首页求职者学历分布
export const queryAdminHomeEducationAPI = () => {
    return request({
        url: 'admin/queryAdminEducationData',
        method: 'post',
        params: {
        }
    })
}

//6.查询出管理员-首页在招岗位变化
export const queryAdminHomeJobAPI = () => {
    return request({
        url: 'admin/queryAdminJobData',
        method: 'post',
        params: {
        }
    })
}
